package ccpv;

import java.util.ArrayList;
import java.util.Collection;

public class NamedArrayList<T> extends ArrayList<T>{


	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public String name;
	
	public NamedArrayList() {
		  super();
	}
	
	public NamedArrayList (String name) {
		super();
		this.name = name;
	}
	
	public String toString() {
		String st = "(";
		st = st + this.name;
		for (T value: this) {
		  st = st + ", " + value.toString();	
		}
		st = st + ")";
		return st;
	}
	
	
	public NamedArrayList(Collection c, String name)
	{
		super(c);
		this.name = name;
	}
	
	public NamedArrayList(int initialCapacity, String name)
	{
		super(initialCapacity);
		this.name = name;
	}
	
	public String getName()
	{
		return name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
}
